home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Purity / Purity #21 (1994-01-12)(Diesel)(DE)[WB].zip / Purity #21 (1994-01-12)(Diesel)(DE)[WB].adf / followmouse / FollowMouse.ReadMe < prev    next >
Text File  |  1993-12-13  |  3KB  |  87 lines

  1.  
  2. Program name:  FollowMouse
  3.  
  4. Written with:  Kick PASCAL 2.0
  5.  
  6. Machine:       Standard Amiga 500 with OS1.3,One drive,1 MByte RAM
  7.  
  8. Author:        Kamran Karimi
  9.  
  10. Source:        Included
  11.  
  12. Run methode:   From both WorkBench and Shell (As all Amiga programs should)
  13.  
  14. What it does:  A pair of small blinking eyes in a draggable window following
  15. the mouse movement on the screen. 
  16.  
  17. By the way:    Why doesn't everybody program in PASCAL?
  18.  
  19. Program status:You can use this program freely but I retain the CopyWrite to
  20. the source code and the executable program.
  21.  
  22. Directory contents:
  23.  FollowMouse
  24.  FollowMouse.p
  25.  FollowMouse.ReadMe
  26.  
  27.  
  28.  
  29.  
  30.  I had KickPASCAL (from the German company MAXON) for some time but the only
  31. use I had found for it was to port some programs I'd written originally in
  32. TurboPASCAL  and  compile  them with  the 'Kick', and  the results? the 
  33. compatibility was excellent!.I compiled  some  programs without  changing a 
  34. line of code!.  So I tried to write somthing with it and gain some experience
  35. in PASCAL programming, and I was after a subject to begin using the Kick.
  36.  
  37.  Some month ago in a computer exhibition in Tehran I saw an executable program
  38. called 'EyeBalls' on a MAC LC, which showed a pair of blinking eyes.
  39.  When they program somthing on a machine as primitive as a MAC then it should
  40. be fairly easy to write it for the Amiga! even with limited knowledge. Because 
  41. I had not seen any thing like that on Amiga, I decided to program it , and I 
  42. chose KickPASCAL.
  43.  
  44.  The eye situations are defined in a series of frames,and there are not lots
  45. of them,so the eye movements may seem somewhat jerky, but it does the work.
  46.  the program first initializes necessary things and sets its priority to -2
  47. so that when a task of higher priority needs lots of computing,the eyes will
  48. stop until the processor becomes free. in short: it would not hinder normal
  49. operations of the Amiga.
  50.  then an infinite loop is enterd in which the program computes the mouse 
  51. coordinates and puts the appropriate frame on the screen.based on a random
  52. number it blinks the eyes from time to time.
  53.  I've used a Taylor series approximation to find the ArcTan function just
  54. because the Kick insisted on openning the requiered math library,and that
  55. for single drive users with no hard disks like me is an agony.(single drive
  56. users know the trouble of disk swappings!).now the program works without any
  57. need to something on the bootdisk.
  58.  
  59.  When you start the program it opens a window in a random place on the
  60. WorkBench screen.you can drag the eyes any where  because it is a draggable 
  61. window.You can run several instances of this program if you want.
  62.  
  63.  I have not tested the program under any other OS version or processor.Maybe
  64. someone will test it and kindly let me know about the results.I would 
  65. especially like to know if it works correctly with faster processors.
  66.  
  67.  
  68.  
  69.  This program is Public Domain and you can use it freely,but I would be
  70. grateful if you send me computer books (especially Amiga books) or software 
  71. you don't need any more, or even photocopies of articles in books or magazines 
  72. containing Amiga programming guides or examples.Don't forget to send the 
  73. buges you find and suggestions about improving it.
  74.  
  75.  
  76.  Send any bugs you find or any suggestions to
  77.  
  78.                Kamran Karimi
  79.                2,Hassanabad
  80.                Haghshenas  str.
  81.                Navab       str.
  82.                13599 - Tehran
  83.                Iran
  84.  
  85.     
  86.  
  87.